﻿<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="Test.Scenes.DynamicBinding"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <StackPanel x:Name="LayoutRoot" Background="White">
        <sdk:DataGrid AutoGenerateColumns="True" Height="220" HorizontalAlignment="Left" Margin="22,0,0,0" Name="productsGrid" VerticalAlignment="Top"  />
        <ListBox Name='lb'>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation='Horizontal'>
                        <TextBlock Text='{Binding Name}' Margin='10,5,5,5'/>
                        <TextBlock Text='{Binding Name2}' Margin='5'/>
                        <TextBlock Text='{Binding Price}' Margin='5'/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </StackPanel>
</UserControl>
